local skel = fk.CreateSkill{
  name = "fm__jieyi",
}
Fk:loadTranslationTable{
  ["fm__jieyi"] = "解衣",
  [":fm__jieyi"] = "当你使用或打出手牌时，若你手牌为全场最少，你摸一张牌。",

  ["$fm__jieyi1"] = "裙帽金环带，鼯裘赠书生。",
  ["$fm__jieyi2"] = "锦衣貂裘不足为意。",
}
---@type TrigSkelSpec<TrigFunc>
local jieyi = {
  anim_type = "drawcard",
  can_trigger = function (self, event, target, player, data)
    return player:hasSkill(skel.name) and player == target and data.card and data:IsUsingHandcard(player) and table.every(player.room:getOtherPlayers(player), function (p)
      return #p:getCardIds("h") >= #player:getCardIds("h")
    end)
  end,
  on_cost = Util.TrueFunc,
  on_use = function (self, event, target, player, data)
    player:drawCards(1, skel.name)
  end
}
skel:addEffect(fk.CardUsing, jieyi)
skel:addEffect(fk.CardResponding, jieyi)
return skel